package com.xymtop.sqlcater.core.sql.sqlconnecter.entity;


import com.xymtop.sqlcater.core.sql.sqlconnecter.entity.enumtype.OrderRule;
import com.xymtop.sqlcater.core.sql.sqlconnecter.entity.fieldtype.FieldType;
import com.xymtop.sqlcater.core.sql.sqlconnecter.entity.index.SqlIndex;
import lombok.Data;

//数据表中的字段对象
@Data
public class SqlField {


    //字段名称
    private String name;

    //字段类型
    private FieldType fieldType;

    //字段大小
    private long fieldSize;

    //排序规则
    private OrderRule orderRule;

    //默认值
    private String defaultValue;

    //是否为空
    private Boolean isNull;

    //是否索引
    private Boolean isIndex;

    //索引
    private SqlIndex sqlIndex;

    //自增
    private Boolean isEXtra;

    //注释
    private String comment;


}
